<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<script type="text/javascript">
</script>
<form id="pagerForm" method="post" onsubmit="return divSearch(this,'show_equ_list');" action="equ_show.action">
	<input type="hidden" name="pageNum" value="1" /> 
	<input type="hidden" name="numPerPage" value="${numPerPage}" /> 
	<input type="hidden" name="model.sclName" value="${reSclName}" >	
	<input type="hidden" name="equ.equType" value="${equ.equType}" >	
	<input type="hidden" name="equ.equNo" value="${equ.equNo}" >	
</form>


<div>

	<table class="table" width="100%" layoutH="118">
		<thead>
			<tr>
				<th width="30" ><input type="checkbox"
					class="checkboxCtrl" name="all" group="equNos" /></th>
				<th width="80">学校</th>
				<th width="60" >设备编号</th>
				<th width="80" >设备类型</th>
				<th width="50" >使用类型</th>
				<th width="50" >是否启用</th>
				<th width="80" >考勤类型</th>
				<th width="80">硬件分类</th>
				<th width="80" >最后通讯时间</th>
				<!-- <th width="130" align="center">考勤时间段设置</th> -->
			</tr>
		</thead>
		<tbody id="listBody">
			<c:forEach items="${recordList}" var="equ">
				<tr target="sid_user" rel="${equ.equNo}"
					onclick="edithEquNoCheck('${equ.equNo}')">
					<td><input type="checkbox" name="equNos" value="${equ.equNo}" /></td>

					<td>${equ.hsSchoolInfo.sclName }</td>
					<td>${equ.equNo }</td>
					<td><c:choose>
							<c:when test="${equ.equType eq 0 }">考勤设备</c:when>
							<c:when test="${equ.equType eq 1 }">亲情电话</c:when>
						</c:choose></td>
					<td><c:choose>
							<c:when test="${equ.equAttInoutType eq 0 }">未区分</c:when>
							<c:when test="${equ.equAttInoutType eq 1 }">进</c:when>
							<c:when test="${equ.equAttInoutType eq 2 }">出</c:when>
						</c:choose></td>
					<td><c:choose>
							<c:when test="${equ.equStausFlag eq 0 }">停用</c:when>
							<c:when test="${equ.equStausFlag eq 1 }">正常</c:when>
						</c:choose></td>
					<td><c:choose>
							<c:when test="${equ.equAttType eq 0 }">校门口普通考勤</c:when>
							<c:when test="${equ.equAttType eq 1 }">宿舍考勤</c:when>
							<c:when test="${equ.equAttType eq 2 }">请假考勤</c:when>
							<c:when test="${equ.equAttType eq 3 }">教师考勤</c:when>
							<c:when test="${equ.equAttType eq 4 }">教学区普通刷卡</c:when>
						</c:choose></td>
					<td><c:choose>
							<c:when test="${equ.equNameDc eq 0 }">未区分</c:when>
							<c:when test="${equ.equNameDc eq 1 }">数据网关</c:when>
							<c:when test="${equ.equNameDc eq 2 }">刷卡端</c:when>
							<c:when test="${equ.equNameDc eq 3 }">车载机</c:when>
						</c:choose></td>
					<td><fmt:parseDate value="${equ.equLastTime}" var="date"
							pattern="yyyyMMddHHmmss" /> <fmt:formatDate value="${date}"
							pattern="yyyy-MM-dd HH:mm:ss" /></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="panelBar">
						<div class="pages">
							<span>显示</span> <select class="combox" name="numPerPage"
								onchange="navTabPageBreak({numPerPage:this.value}, 'show_equ_list')">
								<option value="10" <c:if test="${pageSize==10}">selected</c:if>>10</option>
								<option value="20" <c:if test="${pageSize==20}">selected</c:if>>20</option>
								<option value="30" <c:if test="${pageSize==30}">selected</c:if>>30</option>
								<option value="40" <c:if test="${pageSize==40}">selected</c:if>>40</option>
								<option value="50" <c:if test="${pageSize==50}">selected</c:if>>50</option>
								<option value="100"
									<c:if test="${pageSize==100}">selected</c:if>>100</option>
							</select> <span>条，共${recordCount}条</span>
						</div>
						<div class="pagination" rel="show_equ_list"
							totalCount="${recordCount}" numPerPage="${pageSize}"
							pageNumShown="5" currentPage="${currentPage}"></div>
					</div>
</div>